<p class="Paragraph">Text: Any valid string expression. Only the first character in the string is relevant.</p>
<p class="Paragraph">The Asc function is often used to replace keys with values; thus more or less representing the reverse of the <span class="T1">Chr$</span> function. If a string is blank in the Asc function, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic reports a run-time error. In addition to printable 8 bit ASCII characters (Codes 32-255), the ASCII function can also be used to detect non-printable key codes in ASCII code. In addition 16 bit unicode characters are allowed.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleASC</p>
<p class="PropText">Print ASC("A") REM returns 65</p>
<p class="PropText">Print ASC("Z") REM returns 90</p>
<p class="PropText">Print ASC("Las Vegas") REM returns 76, since only the first character is taken into account</p>